package cn.edu.njtc.service;

import cn.edu.njtc.entity.dto.ActivityCreateDto;
import cn.edu.njtc.entity.dto.ActivityQueryDto;
import cn.edu.njtc.entity.dto.ActivityUpdateDto;
import cn.edu.njtc.entity.pojo.EducationActivity;
import cn.edu.njtc.exception.BizException;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface EducationActivityService {

    List<EducationActivity> listActivities();

    EducationActivity getActivityById(Long activityId);
    Long createActivity(ActivityCreateDto createDto);


    @Transactional
    void updateActivity(ActivityUpdateDto updateDto) throws BizException;

    void cancelActivity(Long activityId, String cancelReason) throws BizException;
}
